package mkis.service.root.service.impl;

import java.sql.SQLException;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import mkis.service.root.data.dao.TestDAO;
import mkis.service.root.service.TestService;

import org.springframework.stereotype.Service;


@Service("testService")
public class TestServiceImpl implements TestService {
	
	@Resource(name="testDAO")
	private TestDAO testDAO;
	
	@Override
	public List<Map<String, Object>> getList() throws Exception {
		return testDAO.getList();
		
	}
	
	@Override
	public void multisaveInsert(String string) throws Exception {
		testDAO.insertDatatest1(string);
		testDAO.insertDatatest2(string);
		throw new Exception("등록에러");
		
	}
}
